package main

import "fmt"

const (
	ccc = 1111
)

//常量定义
func consists()  {
	const filename = "abc.txt"
	const a, b = 3, 4
	const c int = 4
	fmt.Print(filename)
	fmt.Print(a,b)
	fmt.Print(c)
}
func main()  {
	consists()
	fmt.Print(ccc)
	enums()
}

//枚举
func enums()  {
	const (
		cpp = iota
		java
		python
		golang
	)
	fmt.Println(cpp, java, python, golang)

	//b, kb, mb,gb,tb,pb
	const (
		b = 1 << (10 * iota)
		kb
		mb
		gb
		tb
		pb
	)
	fmt.Print(b, kb, mb, gb, tb, pb)

}